package com.lvjian.community.utils;

import java.util.HashMap;

/**
 * 常量
 * 
 */
public class Consts {

    // 登录名
    public static final String NAME = "name";
    // 返回码
    public static final String CODE = "code";
    // 返回信息
    public static final String MSG = "msg";
    // 角色id
    public static final String ROLE = "role";

    // 用户角色key-value
    public static HashMap<String, Integer> userRelosHashMap() {
        HashMap<String, Integer> relosHashMap = new HashMap<>();
        relosHashMap.put("doctor", 2);
        relosHashMap.put("user", 3);
        return relosHashMap;
    }
}
